<template>
  <div id="icon">
    <div class="iconItem" v-for="(item, index) in list" :key="index">
      <div class="icon_top">
        <img :src="item.iconUrl" alt="" class="icon" />
      </div>

      <span>推荐</span>
    </div>
  </div>
</template>

<script>
export default {
  props: ["list"],
};
</script>

<style lang="less" scoped>
::-webkit-scrollbar {
  display: none;
}
#icon {
  padding: 0.3rem;
  width: 7.3rem;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;

  .iconItem {
    display: inline-block;
    // display: flex;
    width: 0.9rem;
    margin-right: 0.3rem;
    // float: left;
    flex-direction: column;
    text-align: center;
    .icon_top {
      width: 0.9rem;
      height: 0.9rem;
      border-radius: 50%;
      //   background-color: ;
      background: linear-gradient(to right, #ff6849 0%, #ff330a 100%);
    }
    .icon {
      width: 100%;
      height: 100%;
    }
  }
  .iconItem:last-child {
    margin-right: 0;
  }
}
</style>